﻿/*
* ============================================================================
* GNU Lesser General Public License
* ============================================================================
*
* BYDAN - Free Java BYDAN library.
* Copyright (C) 2008 
* 
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
* 
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
* Lesser General Public License for more details.
* 
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307, USA.
* 
* BYDAN Corporation
*/
package ByDan.AulaVirtual.Presentation.Reporte.Source;

import java.util.ArrayList;
import ByDan.Framework.AulaVirtual.Business.Entities.GeneralEntity;
import ByDan.Framework.AulaVirtual.Business.Entities.Mensajes;
import ByDan.Framework.AulaVirtual.Utils.ParameterDbType;
import ByDan.Framework.AulaVirtual.Utils.ParameterType;
import ByDan.Framework.AulaVirtual.Utils.ParametersMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterMaintenance;
import ByDan.Framework.AulaVirtual.Utils.ParameterValue;
import ByDan.Framework.AulaVirtual.Utils.ParametersType;
import ByDan.AulaVirtual.Business.Entities.*;
import ByDan.AulaVirtual.Business.Logic.CaracteristicaControlAjaxLogic;
import ByDan.AulaVirtual.Business.Logic.CaracteristicaControlAjaxLogicAdditional;
import ByDan.Framework.AulaVirtual.Utils.DeepLoadType;
import net.sf.jasperreports.engine.data.JRBeanCollectionDataSource;
import java.sql.*;

public class CaracteristicaControlAjaxBean extends CaracteristicaControlAjax
{
	
	
	Object relationship_agrupacionsDescripcionReporte;
	
	
	public Object getRelationship_agrupacionsDescripcionReporte()
	{
		return relationship_agrupacionsDescripcionReporte;
	}

	
	
	public  void  setRelationship_AgrupacionDescripcionReporte(Object agrupacions)
	{
		try
		{
			this.relationship_agrupacionsDescripcionReporte=agrupacions;
		}
		catch(Exception ex)
		{
			;
		}
	}

	
	
	String field_bigIdControlAjaxDescripcionReporte;
	
	
	
	
	
				
	public CaracteristicaControlAjaxBean  ()
    {
 		field_bigIdControlAjaxDescripcionReporte="";
 		
 		
 		
 		
 		
    } 
	
	     
    
	public String getField_bigIdControlAjaxDescripcionReporte()
	{
		return field_bigIdControlAjaxDescripcionReporte;
	}
    
    
    
    
    
	
    
	public void setField_bigIdControlAjaxDescripcionReporte(String newField_bigIdControlAjaxDescripcionReporte)throws Exception
	{
		try
		{
			this.field_bigIdControlAjaxDescripcionReporte=newField_bigIdControlAjaxDescripcionReporte;
		}
		catch(Exception ex)
		{
			throw ex;
		}
	}
    
    
    
    
    
		
	public static ArrayList<CaracteristicaControlAjaxBean> TraerCaracteristicaControlAjaxBeans(ArrayList<CaracteristicaControlAjax> caracteristicacontrolajaxs)throws Exception
    {
		ArrayList<CaracteristicaControlAjaxBean> caracteristicacontrolajaxbeans=new ArrayList<CaracteristicaControlAjaxBean>();	
		CaracteristicaControlAjaxBean caracteristicacontrolajaxbean;
				
		try
		{
			for(CaracteristicaControlAjax caracteristicacontrolajax:caracteristicacontrolajaxs)
			{
			
				caracteristicacontrolajaxbean=new CaracteristicaControlAjaxBean();
				
				caracteristicacontrolajaxbean.setId(caracteristicacontrolajax.getId());	
				caracteristicacontrolajaxbean.setField_bigIdControlAjax(caracteristicacontrolajax.getField_bigIdControlAjax());
				caracteristicacontrolajaxbean.setField_bigIdControlAjaxDescripcionReporte(CaracteristicaControlAjaxLogicAdditional.getRelationship_ControlAjaxDescripcion(caracteristicacontrolajax.getRelationship_ControlAjax()));	
				caracteristicacontrolajaxbean.setVersionRow(caracteristicacontrolajax.getVersionRow());	
				caracteristicacontrolajaxbean.setField_strNombre(caracteristicacontrolajax.getField_strNombre());	
				caracteristicacontrolajaxbean.setField_intOrden(caracteristicacontrolajax.getField_intOrden());	
				caracteristicacontrolajaxbean.setField_strHtmlinicial(caracteristicacontrolajax.getField_strHtmlinicial());	
				caracteristicacontrolajaxbean.setField_strHtmlfinal(caracteristicacontrolajax.getField_strHtmlfinal());	
				caracteristicacontrolajaxbean.setField_strDescripcion(caracteristicacontrolajax.getField_strDescripcion());	
				
				
				caracteristicacontrolajaxbean.setRelationship_AgrupacionDescripcionReporte(new JRBeanCollectionDataSource(AgrupacionBean.TraerAgrupacionBeans(caracteristicacontrolajax.getRelationship_agrupacions())));	
							
				caracteristicacontrolajaxbeans.add(caracteristicacontrolajaxbean);
			}
		}
		catch(Exception ex)
		{
			throw ex;
		}
		
		return caracteristicacontrolajaxbeans;
    }
}
